<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="description" content="Your description goes here" />
        <meta name="keywords" content="power control electricity meter" />
        <meta name="author" content="Benny Saxen" />
        <link rel="stylesheet" type="text/css" href="home.css" title="home" media="screen,projection" />
<?

$id  = $_GET['id'];

 echo("
  <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js\"></script>
  <script type=\"text/javascript\">
  function update()
  {
   $.get(\"home_ajax.php?id=$id\", {user: '1'}, function(data){ $(\"#getCurrentPower\").html(data);});  
   setTimeout('update()', 2000);
  }
  $(document).ready(function(){update();});
  </script>

  </head>

  <body>
 ");

 //echo date(DATE_RFC822);
 echo("<div id=\"getCurrentPower\">no data found</div>");

echo("</body></html>");
?>

